package com.health.trans.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author nqlz
 */
@Data
@Accessors(chain = true)
public class TableRes {
    private String tableName;
    private String count;
    private String waitTime;
    private String status;
    private String reason;

    public TableRes error(String reason) {
        this.status = "fail";
        this.reason = reason;
        return this;
    }

    public TableRes success() {
        this.status = "success";
        return this;
    }
}
